// 导入 axios 对象
import axios from '@/utils/request.js'

// 按需 导出 接口方法
// 1.热门搜索关键字---------------------------
export const hotSearch = () => axios({
    method: 'get',
    url: '/search/hot'
})

// 2.搜索歌曲列表---------------------------
export const searchResult = (keywords, limit = 20, offset = 0) => axios({
    method: 'get',
    url: '/cloudsearch',
    params: {
        keywords,
        limit,
        offset
    }
})